async function sleep(delay) {
    return new Promise((resolve) => setTimeout(resolve, delay))
}
async function foo() {
    const t0 = Date.now()
    await sleep(1500)
    console.log(Date.now() - t0)
}
foo()